@font-face {
    font-family: 'SYNE';
    src: url('fonts/SyneMono-Regular.ttf');
}

@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Regular.ttf');
    font-weight: normal;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Light.ttf');
    font-weight: light;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Medium.ttf');
    font-weight: 100;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-SemiBold.ttf');
    font-weight: 300;
}
@font-face {
    font-family: 'SPACEGROTESK';
    src: url('fonts/SpaceGrotesk-Bold.ttf');
    font-weight: bold;
}

/*header*/

.header {
    position: fixed;
    display: block;
    height: 5vw;
    width: 100%;
    background: linear-gradient(#111111, transparent);
    top: 0;
    z-index: 2;
}

select {
    width: fit-content;
    padding: 3px;
    font-family: 'SPACEGROTESK';
    font-weight: 100;
    color: #c2c2c2;
    background-color: #111111;
    border-color: #929292;
}

footer {
    position: fixed;
    bottom: 3%;
    left: 3vw;
    font-family: 'SPACEGROTESK';
    font-weight: light;
    font-size: x-small;
    color: #929292;
}

.content {
    position: absolute;
    display: flex;
    width: 65%;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    justify-content: space-between;
    align-items: center;
}

#name {
    font-family: 'SYNE';
    font-size: 1vw;
    color: #f3f3f3;
}

.links {
    margin: auto;
    opacity: 1;
    transition: 0.3s ease-in-out;
}
.links:hover {
    opacity: 0.5;
    transform: scale(90%);
}

#homepage {
    width: 1.9vw;
}
#projects {
    width: 2.2vw;
}
#about {
    width: 2vw;
}
#contact {
    width: 2.2vw;
}
#linktree {
    width: 2vw;
}

/*background*/

body {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-color: #111111;
    overflow-x: hidden;
}

.page {
    position: relative;
    padding-bottom: 10%;
    width: 70%;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
}

.text {
    position: relative;
    display: flex;
    margin-bottom: 10vh;
    width: 100%;
    align-items: center;
    justify-content: left;
}

#titleprojects {
    margin: 2vw;
    font-family: 'SYNE';
    font-style: normal;
    font-size: calc(35px + 0.4vw);
    color: #a69697;
    transition: 0.5s ease-in-out;
}

#textprojects {
    margin: 2vw;
    width: 40%;
    font-family: 'SPACEGROTESK';
    font-weight: normal;
    font-style: italic;
    font-size: calc(10px + 0.4vw);
    color: #f3f3f3;
    opacity: 0;
    transition: 0.5s ease-in-out;
}
.text:hover {
    #titleprojects {
        color: #7a6263;
    }
    #textprojects {
        opacity: 1;
    }
}

.projects {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
}

/*projects*/

.container {
    position: relative;
    display: block;
    width: 21%;
    aspect-ratio: 1 / 1;
    margin: 2%;
}

.pic {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 0.2rem;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(#91a8ab 25%, transparent 100%);
    border-radius: 0.2rem;
    z-index: 1;
    opacity: 0;
    transition: 0.5s ease-in-out;
}
    .overlay:hover, .overlay:focus, .overlay:active {
        opacity: 1;
    }

#overlaytext {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 5%;
    top: 4%;
    font-family: 'SYNE';
    font-size: 1.5vw;
    color: #1e2a2b;
}
#overlaydetails {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 7%;
    top: 25%;
    font-family: 'SPACEGROTESK';
    font-weight: 100;
    font-size: 8pt;
    color: #2e4041;
}

/*java animation*/

.container {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20%);
    transition: all .5s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: scale(100%);
    transform: translateY(0);
}

@media(prefers-reduced-motion) {
    .container {
        transition: none;
    }
}

/*responsive*/

@media only screen and (max-width: 600px) {
    .text {
        display: block;
        margin-bottom: 7vh;
        text-align: center;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }
    #titleprojects {
        margin: 2vw;
        font-size: calc(30px + 0.4vw);
        color: #a69697;
    }
    #textprojects {
        margin: 5vw 0;
        width: 100%;
        font-size: calc(13px + 0.4vw);
        color: #f3f3f3;
        opacity: 1;
        transition: 0.5s ease-in-out;
    }
}

@media only screen and (max-width: 600px) {
    .page {
        padding-bottom: 20%;
        top: 10%;
        width: 90%;
    }
    .projects {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    .container {
        width: 46%;
        margin: 2%;
    }
    #overlaytext {
        font-size: 5vw;
    }
}


@media only screen and (max-width: 600px) {
    .header {
        height: 12vw;
        width: 100%;
        top: 0;
        z-index: 2;
    }
    .content {
        width: 90%;
    }    
    #name {
        font-family: 'SYNE';
        font-size: 3vw;
        color: #f3f3f3;
    }
    .links {
        margin: auto;
        opacity: 1;
        transition: 0.3s ease-in-out;
    }
    .links:hover {
        opacity: 0.5;
        transform: scale(90%);
    }
    #homepage {
        width: 5vw;
    }
    #projects {
        width: 5vw;
    }
    #about {
        width: 5vw;
    }
    #contact {
        width: 5vw;
    }
    #linktree {
        width: 5vw;
    }
    }